package test.bean;

import java.util.Arrays;
import java.util.List;

public class TdaTable {

    //基础表名
    private String tableName;
    //功能说明
    private String functionDescription;
    //表 主 键
    private String[] tablePrimaryKey;
    //业务主键
    private String[] businessPrimaryKey;
    //外键说明
    private String foreignKeyDescription;
    //索引说明
    private String indexDescription;
    //分区字段
    private String[] partitionField;
    //采集方式
    private String collectionMode;
    //源表采集规则
    private String sourceTableCollectionRules;
    //目标处理规则
    private String targetProcessingRules;

    private List<TdaTableColumn> tdaTableColumnList;

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public String getFunctionDescription() {
        return functionDescription;
    }

    public void setFunctionDescription(String functionDescription) {
        this.functionDescription = functionDescription;
    }

    public String[] getTablePrimaryKey() {
        return tablePrimaryKey;
    }

    public void setTablePrimaryKey(String[] tablePrimaryKey) {
        this.tablePrimaryKey = tablePrimaryKey;
    }

    public String[] getBusinessPrimaryKey() {
        return businessPrimaryKey;
    }

    public void setBusinessPrimaryKey(String[] businessPrimaryKey) {
        this.businessPrimaryKey = businessPrimaryKey;
    }

    public String getForeignKeyDescription() {
        return foreignKeyDescription;
    }

    public void setForeignKeyDescription(String foreignKeyDescription) {
        this.foreignKeyDescription = foreignKeyDescription;
    }

    public String getIndexDescription() {
        return indexDescription;
    }

    public void setIndexDescription(String indexDescription) {
        this.indexDescription = indexDescription;
    }

    public String[] getPartitionField() {
        return partitionField;
    }

    public void setPartitionField(String[] partitionField) {
        this.partitionField = partitionField;
    }

    public String getCollectionMode() {
        return collectionMode;
    }

    public void setCollectionMode(String collectionMode) {
        this.collectionMode = collectionMode;
    }

    public String getSourceTableCollectionRules() {
        return sourceTableCollectionRules;
    }

    public void setSourceTableCollectionRules(String sourceTableCollectionRules) {
        this.sourceTableCollectionRules = sourceTableCollectionRules;
    }

    public String getTargetProcessingRules() {
        return targetProcessingRules;
    }

    public void setTargetProcessingRules(String targetProcessingRules) {
        this.targetProcessingRules = targetProcessingRules;
    }

    public List<TdaTableColumn> getTdaTableColumnList() {
        return tdaTableColumnList;
    }

    public void setTdaTableColumnList(List<TdaTableColumn> tdaTableColumnList) {
        this.tdaTableColumnList = tdaTableColumnList;
    }

    @Override
    public String toString() {
        return "TdaTable{" +
                "tableName='" + tableName + '\'' +
                ", functionDescription='" + functionDescription + '\'' +
                ", tablePrimaryKey=" + Arrays.toString(tablePrimaryKey) +
                ", businessPrimaryKey=" + Arrays.toString(businessPrimaryKey) +
                ", foreignKeyDescription='" + foreignKeyDescription + '\'' +
                ", indexDescription='" + indexDescription + '\'' +
                ", partitionField=" + Arrays.toString(partitionField) +
                ", collectionMode='" + collectionMode + '\'' +
                ", sourceTableCollectionRules='" + sourceTableCollectionRules + '\'' +
                ", targetProcessingRules='" + targetProcessingRules + '\'' +
                ", tdaTableColumnList=" + tdaTableColumnList +
                '}';
    }
}
